# 生成10个 50-100之间的整数 --随机数

import random

print(random.random())
print(random.randint(50, 100))
print(random.randrange(50, 100, 2))

for i in range(100):
    print(random.randint(50, 100))  # 验证结果: >=50 and <=100


def get_range_random(start, end, number):
    numbers = []
    for i in range(number):
        numbers.append(random.randint(start, end))
    return numbers


if __name__ == '__main__':
    range_random = get_range_random(50, 100, 10)
    range_random.sort()
    random.shuffle(range_random) # 把集合打乱 洗牌的需求
    print(range_random)
